<?php

namespace App\Models;

use App\Models\CommonModel as Model;

/**
 * Class UserComment
 * @package App\Models
 * @version July 14, 2018, 7:08 pm CST
 *
 * @property int user_id
 * @property string avatar
 * @property smallint is_hot
 * @property string comment
 */
class UserComment extends Model
{

    public $table = 'user_comments';

    public $fillable = [
        'user_id',
        'avatar',
        'is_hot',
        'comment',
        'status',
        'nickname',
    ];

    /**
     * The attributes that should be casted to native types.
     *
     * @var array
     */
    protected $casts = [
        'avatar' => 'string',
        'comment' => 'string'
    ];

    /**
     * Validation rules
     *
     * @var array
     */
    public static $rules = [
        
    ];

    
}
